import _thread
import time

from doing import start_wifi, main_do

if __name__ == '__main__':
    '''
    MicroPython v1.9.1-224-g83d3f3f-dirty on 2017-12-12; ESP32 module with ESP32
    '''
    _thread.start_new_thread(start_wifi, ())
    # _thread.start_new_thread(start_wifi, (1,))

    main_do()

    i = 1
    while True:
        print('运行时间', i)
        i += 1
        if i > 10:
            break
        time.sleep(1)

    print('--- main.py run over ---\n')
